package test.dto;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2022/6/8 16:50
 * @ Description:
 */
@Data
public class FileUploadRequestDTO {

    private String path; //需要，其实可以从file中获取

    private MultipartFile file;

    private Integer chunk; //分片序号  自带

    private Long chunks; //总分片数  自带

    private Long chunkSize; //分片大小  需要

    private String md5; //需要

    private String guid; //需要

    private String id; //需要

    private String name; //自带文件名（不包含路径）

    private String type; //自带

    private String size; //自带总文件大小

    private String lastModifiedDate; //自带

}
